Skip to content

Trying to allow Int8 as indices#371

Open
simone-silvestri wants to merge 17 commits intoJuliaArrays:masterfrom
simone-silvestri:master
Open

Trying to allow Int8 as indices#371
simone-silvestri wants to merge 17 commits intoJuliaArrays:masterfrom
simone-silvestri:master

Conversation

@simone-silvestri
Copy link
Copy Markdown

This PR is trying to solve #370. This is just an initial proposal, but I guess there is a lot of work to do still.
I have noticed that

julia> BigInt(1) !== BigInt(1)
true

so I had to manually change some tests when the offsets are BigInts

Any suggestion or comment is more than welcome as I am not very sure about downstream implications of this PR

@codecov
Copy link
Copy Markdown

codecov Bot commented Jan 29, 2026

Codecov Report

❌ Patch coverage is 96.55172% with 1 line in your changes missing coverage. Please review.
✅ Project coverage is 95.58%. Comparing base (f9fd311) to head (ed6b86f).
⚠️ Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
src/OffsetArrays.jl 95.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #371      +/-   ##
==========================================
- Coverage   96.57%   95.58%   -0.99%     
==========================================
  Files           6        6              
  Lines         467      476       +9     
==========================================
+ Hits          451      455       +4     
- Misses         16       21       +5     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown

@giordano giordano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'll defer the decision about adding a new type parameter to the maintainers of the package

Comment thread ext/OffsetArraysAdaptExt.jl Outdated
Comment thread src/OffsetArrays.jl Outdated
Comment thread src/OffsetArrays.jl Outdated
Comment thread src/OffsetArrays.jl Outdated
simone-silvestri and others added 4 commits May 1, 2026 17:59
Co-authored-by: Mosè Giordano <765740+giordano@users.noreply.github.com>
Co-authored-by: Mosè Giordano <765740+giordano@users.noreply.github.com>
Co-authored-by: Mosè Giordano <765740+giordano@users.noreply.github.com>
Co-authored-by: Mosè Giordano <765740+giordano@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants